/*=============================================================================
** Copyright (c) 2004~ BEA Systems, Inc.
** All rights reserved.
**
** File Name   : hostglobal.h
** Description : Declare for global variable 
** History     : 2004.08.xx - Created by YI KIM
**               2004.08.xx
**
** define  BUFFLEN        4000
**===========================================================================*/
#define  SUCCESS        0
#define  FAIL           -1
#define  BUFFTYPE       "CARRAY"
#define  BUFFLEN        4000

/*-----------------------------------------------------------------------------
** Description
** - IFCode      : Interface Code
** - SSystem     : Source System (ex. EA:EAI, HT:Host, SA:SAP, ER:ERP)
** - TSystem     : Target System (                ""                 ) 
** - MsgLenL     : Message Length
** - RCodeL      : Return Code 
** - RMsg        : Return Message
** #define	 DataL		4096
**---------------------------------------------------------------------------*/
#define  IFCodeL	8
#define  SSystemL	2
#define  TSystemL	2
#define  MsgLenL	5
#define	 RCodeL		5
#define	 RMsgL		100
#define	 DataL		4096

struct _st_msg_ {
char	IFCode [IFCodeL];
char	SSystem[SSystemL];
char	TSystem[TSystemL];
char	MsgLen [MsgLenL];
char	RCode  [RCodeL];
char	RMsg   [RMsgL];
char    Data   [DataL];
};
 
typedef struct _st_msg_   MsgType;
